package C.e.io.gaoji;

import java.io.*;

public class OISDemo {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        /*FileInputStream fis=new FileInputStream("student.obj");
        ObjectInputStream ois=new ObjectInputStream(fis);
        Object obj=ois.readObject();
        Student zs=(Student)obj;
        System.out.println(zs);
        ois.close();*/


        FileInputStream fis=new FileInputStream("q.obj");
        ObjectInputStream ois=new ObjectInputStream(fis);
        Object obj=ois.readObject();
        Student q=(Student) obj;
        System.out.println(q);
        ois.close();
    }
}
